
#pragma once

namespace js {

/**
 * Loads, compiles and runs script located in the file specified.
 * Dumps the corresponding message to stderr in case of error.
 * \param file_name Path to the source file.
 * \returns int Zero on success, negative error code in case of error.
 */
int run_js_script(const char * file_name);

} // namespace js
